package com.school.demo.controller;

import io.swagger.annotations.Api;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: demo
 * @description: 展示页控制类
 * @author: Charlotte
 * @create: 2021-03-02 16:22
 **/
@Api(tags = "外部资源控制类")
@Controller
@RequestMapping("/index")
public class IndexController {

    @GetMapping("login")
    public Object login() {
        return "Here is Login page";
    }

    @GetMapping("unauthc")
    public Object unauthc() {
        return "Here is Unauthc page";
    }

    @GetMapping("apidoc")
    public String apidoc(){
        return "";
    }
}
